package com.wutianyi.module.services;

import java.util.List;

import com.wutianyi.module.commons.Item;
import com.wutianyi.module.commons.PropertyGroup;
import com.wutianyi.module.company.Company;

/**
 * @author wutianyi
 * 
 */
public interface CompanyServices {
	
	public Company createCompany(String name, String description);
	
	public Company getCompanyBaseInfoByCId(String companyId);
	
	public void addPropertyGroup(int cId, PropertyGroup pg);
	
	public void updateCompany(String companyId, String name, String nameEn, String description,
			List<PropertyGroup> updatePgs, List<PropertyGroup> addPgs);
	
	public void addPropertyGroups(int cId, List<PropertyGroup> pgs);
	
	public void updatePropertyGroups(int cId, List<PropertyGroup> pgs);
	
	public void addPropertyGroupItem(int cId, int gId, Item item);
	
	public void updatePropertyGroupsOrder(int cId, int[] gIds);
	
	public void updatePropertyGroupItemsOrder(int cId, int gId, int[] iIds);
	
	public Company getCompanyByCId(String companyId);
	
	public Company getCompanyById(int id);
	
	public List<Company> listCompanys();
}
